package com.situ.mall.mapper;

import com.situ.mall.pojo.entity.Coupon;
import com.situ.mall.pojo.query.CouponQuery;

import java.util.List;

public interface CouponMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Coupon record);

    int insertSelective(Coupon record);

    Coupon selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Coupon record);

    int updateByPrimaryKey(Coupon record);

    List<Coupon> selectByUserId(CouponQuery couponQuery);

    List<Coupon> couponListSelectByUserId(Integer userId);

    void deleteById(Integer id);
}